<?php
$geto = $_GET['geto'];
require('../../cofd/common.php');
$stmt = $conn->prepare("SELECT exmatother FROM exam_page WHERE exmatid = ?");
$stmt->bind_param("s", $geto);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
    while($row = $result->fetch_assoc()) {
        $exmatother = $row['exmatother'];
    }
    echo json_encode(array('code' => 1, 'data' => $exmatother));
} else {
    echo json_encode(array('code' => 0, 'msg' => '获取数据失败'));
}
$stmt->close();
$conn->close();